If you use Think C/C++ and CMaster, you should get the new 2.0 update!
It is VERY cool and adds many new and useful features. One of these new
features is the new "Glossary" feature. Do you get tired of typing the same
constructs over and over? Well, this feature will change that.
I've included a sample prefs file with this that has the following glossary
entries defined. Some of these contain stuff you'll want to change,
but many will be usable right off. I've included a note about what each
one does below. If you copy them, make sure that you order the Glossaries in a numerically increasing manner with no gaps. Also, don't forget to copy over the
help strings in the STR# resource!
If you create any cool glossary entries, please post them or send to Jersey
so they can include them on future update disks! :-)
peace,
tyler morrison
mc (modification comment, note you'll change the initials at the end.)
// Modified 6/17/94 — 3:01 PM.tbm
if (plain old if)
if ( •• )
{
••
}
ife (if/else)
if ( •• )
{
••
}
else
{
••
}
bf (boolean function)
Boolean •foo•( •arg• )
{
Boolean result = false;
••
return ( result );
}
osf (oserr function)
OSErr •foo•( •arg• )
{
OSErr result = noErr;
•body•
return ( result );
}
i (include with "")
#include "•filename•.h"
is (include system, so use <>)
#include <•filename•.h>
d (#define preprocessor macro)
#define •thing•
po (#pragma once preprocessor macro)
#pragma once
pm (#pragma mark preprocessor macro for CMaster)
#pragma mark •what•
st (String 255 definition because I can't touch type numbers :-).
Str255
while (while loop template - I don't use much or it would be "wh" :-).
while ( •condition• )
{
•body•
}
s (for short definition)
short
l (for long def)
long
class (simple class template)
class •ClassName• : public •ParentName•
{
public:
• •
protected:
• •
private:
• •
};
sw (switch statement template)
switch ( •on what• )
{
case •a•:
• •
break;
case •b•:
• •
break;
case •c•:
• •
break;
}
v (for void, might want to switch with virtual if you use that more)
void
for (for loop template)
for ( ••; ••; •• )
{
••
}
head ( C file header I use, note that you'll need to put your name in it)